package com.gitee.bluebird;


import org.yaml.snakeyaml.Yaml;

/**
 ** @createtime : 2018/11/26 5:17 PM
 **/
public class RegistryBootstrap {
    public static void main(String[] args) {

        CommandHandler commandHandler = new CommandHandler();
        commandHandler.regist(new RegistNodeCmd());

        Yaml yaml = new Yaml();
        BootstrapConf bootstrapConf = yaml.loadAs(ClassLoader.getSystemResourceAsStream("bootstrap.yml"), BootstrapConf.class);

        new RegistryServer(commandHandler, bootstrapConf);
    }
}
